import axios from '@/libs/api.request'

/**
 * 云仓库列表
 * */
export const depotList = (data) => {
  return axios.request({
    url: '/querySysDepot',
    data,
    method: 'post'
  })
}

/**
 * 添加云仓库
 * */
export const addDepot = data => {
  return axios.request({
    url: '/addSysDepot',
    data,
    method: 'post'
  })
}

/**
 * 添加云仓库
 * */
export const amendDepot = data => {
  return axios.request({
    url: '/updSysDepotInfo',
    data,
    method: 'post'
  })
}

/**
 * 删除云仓库
 * */
export const delDepot = data => {
  return axios.request({
    url: '/delSysDepotInfo',
    data,
    method: 'post'
  })
}

/**
 * 更改云仓库状态
 * */
export const changeDepot = data => {
  return axios.request({
    url: '/updSysDepotStatus',
    data,
    method: 'post'
  })
}
